<%@ page language="java" pageEncoding="utf8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>" type="text/css" />
	</head>
	<body style="">
		<div id="headBar" class="head_content"></div>
		<div id="main" class="main_content">
			<form action="od_payment_save.html" method="post" class="tableform">
				<input type="hidden" value="${orderId}" name="orderPayments.orderId" />
				<input type="hidden" value="${orders.memberId}" name="orderPayments.memberId" />
				<div class="division">
					<table width="100%">
						<tbody>
							<tr>
								<th>
									订单号：
								</th>
								<td>
									${orders.orderId}【${orders.payStatus}】
								</td>
								<th>
									下单日期：
								</th>
								<td>
									${orders.createTimeString}
								</td>
							</tr>
							<tr>
								<th>
									订单总金额：
								</th>
								<td>
									<fmt:message key="common_currency" />${orders.totalAmount}
								</td>
								<th>
									已收金额：
								</th>
								<td>
									<fmt:message key="common_currency" /> ${orders.payed}
								</td>
							</tr>
							<tr>
								<th>
									收款银行：
								</th>
								<td colspan="3">
									<input type="text" value="" name="orderPayments.bank" id="payBank" class="x-input ">
										<select name="select_account" id="selectAccount" class="x-input-select  inputstyle">
											<option value="0" selected="selected">
												--使用已存在帐户--
											</option>
											<option value="招商银行-2222555522225555" selected="selected">
												招商银行 - 2222555522225555
											</option>
											<option value="-" selected="selected">
												-
											</option>
											<option value="CMCC-1111111111111" selected="selected">
												CMCC - 1111111111111
											</option>
										</select>
								</td>
							</tr>
							<tr>
								<th>
									收款帐号：
								</th>
								<td colspan="3">
									<input type="text"  name="orderPayments.account" id="payAccount" class="x-input " />
								</td>
							</tr>
							<tr>
								<th>
									收款金额：
								</th>
								<td colspan="3">
									<input value="0" name="orderPayments.money" class="x-input " />
								</td>
								
							</tr>
							<tr>
								<th>
									付款类型：
								</th>
								<td colspan="3">
									<input type="radio" value="1" name="orderPayments.payType"/>
										<label>
											在线支付
										</label>
										<br />
										<input type="radio" checked="checked" value="2" name="orderPayments.payType"/>
											<label>
												线下支付
											</label>
											<br />
								</td>
							</tr>
							<tr>
								<th>
									支付方式：
								</th>
								<td>
									<input type="hidden" value="mcss" name="orderPayments.paymentName" />
									<select name="orderPayments.paymentTypeId" class="x-input-select  inputstyle">
									<c:forEach items="${orderPaymentCfgs}" var="cfg" >
										<option value="${cfg.pcId}">
											 ${cfg.customName }
										</option>
										 </c:forEach>
									</select>
								</td>
								<th>
									客户支付货币：
								</th>
								<td>
									人民币 (<fmt:message key="common_currency" />${orders.totalAmount})
								</td>
							</tr>
							<tr>
								<th>
									是否开票：
								</th>
								<td>
									${orders.taxOn}
								</td>
								<th>
									税金：
								</th>
								<td>
									<fmt:message key="common_currency" />${orders.costTax}
								</td>
							</tr>
							<tr>
								<th>
									当前状态:
								</th>
								<td>
									${orders.status}
								</td>
								<th>
									收取支付费用:
								</th>
								<td>
									${orders.costPayment}
								</td>
							</tr>
							<tr>
								<th>
									发票抬头：
								</th>
								<td>
									${orders.taxCompany}
								</td>
								<th>
									付款人：
								</th>
								<td>
									<input type="text" value="${member.name}" name="orderPayments.payAccount" class="x-input " />
								</td>
							</tr>
							<tr>
								<th>
									收款单备注：
								</th>
								<td colspan="3">
									<textarea rows="" cols="40" name="orderPayments.description"></textarea>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="table-action">
					<button class="btn" type="submit">
						<span><span>提交</span> </span>
					</button>
				</div>
			</form>
		</div>
		<div id="footBar" class="foot_content"></div>



		<script type="text/javascript" src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/jquery.validate.js'/>"></script>
		<script type="text/javascript">
	$(document).ready(function() {
		var validator = $("#role_form").validate( {
			errorElement : "div",
			errorClass : "x-vali-error",
			onfocusout : false,
			rules : {
				'systemRoles.roleName' : "required"
			},
			messages : {
				'systemRoles.roleName' : "必填字段"
			},
			errorPlacement : function(error, element) {
				element.removeClass('x-vali-error');
				error.appendTo(element.parent());

			},

			success : function(div) {
				$(div).remove();
			}
		});
	});
</script>
	</body>
</html>